﻿using System.Collections.Generic;
using Blog.Core.Entities;
using Blog.Infrastructure.DataAcces.MetaBlog;
using Category = Blog.Core.Entities.Category;

namespace Blog.Infrastructure.DataAcces.Repositories.Abstractisations
{
    public interface IArticleRepository:IRepository<Article>
    {
        IList<Article> Latest(long itemsNumber);
        IList<Article> MostPopular(long itemsNumber);
        IList<Article> Archive(int page, int range);
        IList<Article> ByCategory(string cat);
        IList<Category> Categories();
        int NewCategory(WordpressCategory category);
    }
}